﻿using System.ServiceModel;

namespace Martin.WcfService.Contracts
{
    [ServiceContract(Namespace = "http://localhost/", CallbackContract = typeof(ICallback))]
    public interface ICalculator
    {
        [OperationContract(IsOneWay = true)]
        void Add(double x, double y);

        //[OperationContract]
        //double Subtract(double x, double y);

        //[OperationContract]
        //double Multiply(double x, double y);

        //[OperationContract]
        //double Divide(double x, double y);
    }

    public interface ICallback
    {
        [OperationContract(IsOneWay = true)]
        void DisplayResult(double x, double y, double result);
    }
}
